package com.gton.service;

import com.gton.entity.LoginUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: springcloud-nacos
 * @description: 用户的service，业务处理层
 * @author: GuoTong
 * @create: 2020-11-20 16:43
 **/
@Service
public class UserService {


    //比较账号或者密码

    public boolean isNameAndPasswordOk(LoginUser user){
        String username = user.getUsername();
        String password = user.getPassword();
        if ("admin".equalsIgnoreCase(username)&&"123456".equalsIgnoreCase(password)){
            return true;
        }else {
            return false;
        }
    }
}
